package com.yaorange.nongjt.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.yaorange.nongjt.mapper.NjtCertificatePrintMapper;
import com.yaorange.nongjt.domain.NjtCertificatePrint;
import com.yaorange.nongjt.service.INjtCertificatePrintService;

/**
 * 合格证打印Service业务层处理
 * 
 * @author Mmj
 * @date 2025-02-28
 */
@Service
public class NjtCertificatePrintServiceImpl implements INjtCertificatePrintService 
{
    @Autowired
    private NjtCertificatePrintMapper njtCertificatePrintMapper;

    /**
     * 查询合格证打印
     * 
     * @param mobilePhone 合格证打印主键
     * @return 合格证打印
     */
    @Override
    public NjtCertificatePrint selectNjtCertificatePrintByMobilePhone(String mobilePhone)
    {
        return njtCertificatePrintMapper.selectNjtCertificatePrintByMobilePhone(mobilePhone);
    }

    /**
     * 查询合格证打印列表
     * 
     * @param njtCertificatePrint 合格证打印
     * @return 合格证打印
     */
    @Override
    public List<NjtCertificatePrint> selectNjtCertificatePrintList(NjtCertificatePrint njtCertificatePrint)
    {
        return njtCertificatePrintMapper.selectNjtCertificatePrintList(njtCertificatePrint);
    }

    /**
     * 新增合格证打印
     * 
     * @param njtCertificatePrint 合格证打印
     * @return 结果
     */
    @Override
    public int insertNjtCertificatePrint(NjtCertificatePrint njtCertificatePrint)
    {
        return njtCertificatePrintMapper.insertNjtCertificatePrint(njtCertificatePrint);
    }

    /**
     * 修改合格证打印
     * 
     * @param njtCertificatePrint 合格证打印
     * @return 结果
     */
    @Override
    public int updateNjtCertificatePrint(NjtCertificatePrint njtCertificatePrint)
    {
        return njtCertificatePrintMapper.updateNjtCertificatePrint(njtCertificatePrint);
    }

    /**
     * 批量删除合格证打印
     * 
     * @param mobilePhones 需要删除的合格证打印主键
     * @return 结果
     */
    @Override
    public int deleteNjtCertificatePrintByMobilePhones(String[] mobilePhones)
    {
        return njtCertificatePrintMapper.deleteNjtCertificatePrintByMobilePhones(mobilePhones);
    }

    /**
     * 删除合格证打印信息
     * 
     * @param mobilePhone 合格证打印主键
     * @return 结果
     */
    @Override
    public int deleteNjtCertificatePrintByMobilePhone(String mobilePhone)
    {
        return njtCertificatePrintMapper.deleteNjtCertificatePrintByMobilePhone(mobilePhone);
    }
}
